package com.smartlink.util;

import org.apache.commons.codec.binary.Base64;

public class PasswordUtil {
	public static String codec(String str) {
		return Base64.encodeBase64String(str.getBytes());

	}

	public static String decode(String str) {
		return new String(Base64.decodeBase64(str.getBytes()));
	}

}
